package com.ck.ips.controller.sys;

import com.ck.common.page.PageInfo;
import com.ck.core.annotation.LoginRequired;
import com.ck.ips.controller.BaseController;
import com.ck.ips.model.vo.sys.OperationLogListVO;
import com.ck.ips.service.sys.OperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @Description: 系统操作日志controller
* @Author: hf
* @Date:    2019/4/30 15:28
* @Version: 1.0
*/
@LoginRequired
@RestController
@RequestMapping(value = "/operationLog")
public class OperationLogController extends BaseController {

	@Autowired
	private OperationLogService operationLogService;

	/**
	 * 操作日志列表
	 */
	@PostMapping(value = "/list")
	public Object listOperationLog(String startTime,String endTime, String userName,String realName,String ip, Integer pageNum, Integer pageSize) {
		PageInfo<OperationLogListVO> operationLogPageInfo = operationLogService.listOperationLogByPage(startTime, endTime, userName,realName,ip,pageNum, pageSize);
		return operationLogPageInfo;
	}
}
